<?php if (isset($this->articles) && count($this->articles) > 0) : ?>
	<?php if (isset($this->style) && $this->style == 'image') : ?>
	<div class="ninhgio pdb5">
		<div class="sb-block">
			<?php if (isset($this->category) && $this->category) : ?>
			<span class="h1"><a href="<?php echo $this->url('news_article_category', $this->category); ?>"><?php echo $this->category['name']; ?></a></span>
			<?php else : ?>
			<span class="h1"><?php echo $this->TRANSLATOR->widget('title'); ?></span>
			<?php endif; ?>
			<?php foreach ($this->articles as $index => $article) : ?>
				<?php if ($index == 0) : ?>
				<span class="larger-pic-title">
					<a href="<?php echo $this->url('news_article_details', $article); ?>"><?php echo $article['title']; ?></a>
				</span>
					<?php if (isset($article['image_general'])) : ?>
					<a href="<?php echo $this->url('news_article_details', $article); ?>" class="larger-pic">
						<img style="border-width: 1px; border-style: solid;" src="<?php echo $this->APP_RESOURCE_SERVER; ?>/<?php echo $article['image_general']; ?>" />
					</a>
					<?php else : ?>
						<?php if (isset($article['image_url'])) : ?>
						<a href="<?php echo $this->url('news_article_details', $article); ?>" class="larger-pic">
							<img style="border-width: 1px; border-style: solid;" src="<?php echo $article['image_url']; ?>" />
						</a>
						<?php endif; ?>
					<?php endif; ?>
				<table cellspacing="0" border="0" style="border-collapse: collapse;">
					<tr>
				<?php else : ?>
					<td valign="top">
		        		<div class="foto title_under">
		        			<?php if (isset($article['image_general'])) : ?>
			    			<a href="<?php echo $this->url('news_article_details', $article); ?>">
			    				<img src="<?php echo $this->APP_RESOURCE_SERVER; ?>/<?php echo $article['image_general']; ?>" />
			    			</a>
			    			<?php else : ?>
			    				<?php if (isset($article['image_url'])) : ?>
				    			<a href="<?php echo $this->url('news_article_details', $article); ?>">
				    				<img src="<?php echo $article['image_url']; ?>" />
				    			</a>
				    			<?php endif; ?>
			    			<?php endif; ?>
			    			<a href="<?php echo $this->url('news_article_details', $article); ?>"><?php echo $article['title']; ?></a>
		     			</div>
	        		</td>
	        		<?php if ($index % 2 == 0) : ?>
		        	</tr><tr>
		        	<?php endif; ?>
				<?php endif; ?>
			<?php endforeach; ?>
				</tr>
			</table>
		</div>
	</div>
	<?php else : ?>
	<div class="ninhgio">
		<div class="boxShareClunmleft300">
		    <div class="boxShareClunmleft300Top">
		        <div class="boxShareClunmleft300Btom">
		            <div class="color3 bold fontsize15 padding6 textCter" style="border-bottom: 1px solid #DADADA;">
		            	<?php if (isset($this->category) && $this->category) : ?>
		                <a class="color2 bold fontsize15" href="<?php echo $this->url('news_article_category', $this->category); ?>"><?php echo $this->category['name']; ?></a>
		                <?php else : ?>
		                <?php echo $this->TRANSLATOR->widget('title'); ?>
		                <?php endif; ?>
					</div>
		            <div class="pd5">
						<?php foreach ($this->articles as $index => $article) : ?>	
						<div class="box-item">
							<?php if ($index == 0) : ?>
								<?php if (isset($article['image_general']) && $article['image_general']) : ?>
					            <div style="float: left; margin-right: 5px;">
						            <a href="<?php echo $this->url('news_article_details', $article); ?>" target="_self">
						            	<img alt="" title="" src="<?php echo $this->APP_RESOURCE_SERVER; ?><?php echo $article['image_general']; ?>" style="width: 130px;" />
						            </a>
								</div>
					            <?php else : ?>
					            	<?php if (isset($article['image_url']) && $article['image_url']) : ?>
									<div style="float: left; margin-right: 5px;">
										<a href="<?php echo $this->url('news_article_details', $article); ?>" target="_self">
							            	<img alt="" title="" src="<?php echo $article['image_url']; ?>" style="width: 130px;" />
							            </a>
									</div>
									<?php endif; ?>
								<?php endif; ?>
								<div class="box-item-link">
									<a class="" href="<?php echo $this->url('news_article_details', $article); ?>" target="_self"><strong><?php echo $article['title']; ?></strong></a><br />
									<div style="padding-top: 5px;"><?php echo $this->STRING->subString($article['description'], 30); ?></div>
					            </div>
					            <div class="clear">&nbsp;</div>
							<?php else : ?>
								<?php if (isset($article['image_square']) && $article['image_square']) : ?>
					            <div style="width: 41px; height: 30px; overflow: hidden; float: left; margin-right: 5px;">
						            <a class="box-item-img" href="<?php echo $this->url('news_article_details', $article); ?>" target="_self">
						            	<img alt="" title="" src="<?php echo $this->APP_RESOURCE_SERVER; ?><?php echo $article['image_square']; ?>" style="width: 41px;" />
						            </a>
								</div>
					            <?php else : ?>
									<?php if (isset($article['image_url']) && $article['image_url']) : ?>
									<div style="width: 41px; height: 30px; overflow: hidden; float: left; margin-right: 5px;">
										<a class="box-item-img" href="<?php echo $this->url('news_article_details', $article); ?>" target="_self">
							            	<img alt="" title="" src="<?php echo $article['image_url']; ?>" style="width: 41px;" />
							            </a>
									</div>
									<?php endif; ?>
								<?php endif; ?>
					            <div class="box-item-link">
					              <a class="" href="<?php echo $this->url('news_article_details', $article); ?>" target="_self"><?php echo $article['title']; ?></a>
					            </div>
					            <div class="clear">&nbsp;</div>
							<?php endif; ?>
						</div>
				      	<?php endforeach; ?>
					</div>
		        </div>
		    </div>
		</div>
	</div>
	<?php endif; ?>
<?php endif; ?>